<template>
  <div>
    <input type="text" v-model="val" />
  </div>
</template>

<script>
export default {
  data() {
    return {
      val: "我是子组件件件件件件件件件件件",
    };
  },
  methods: {
    fn2() {
      this.val = "调用了子组件的方法";
    },
  },
};
</script>

<style>
input {
  width: 400px;
  height: 50px;
  font-size: 20px;
  font-weight: 700;
}
</style>